package Lab02.test12;
public class Circle extends Shape{
    //属性：半径
double radius;
//行为：重写求面积及周长的功能
    @Override
    double area() {
        return 3.14*radius*radius;
    }

    @Override
    double perimeter() {
      return 2*3.14*radius;
    }
}
